1
general::
Phrase(s): You got to do what you got to do. [and] A man’s gotta do what a man’s gotta do.
One has to do whatever it is that one feels obliged to do. • I know I wouldn’t ever agree to that kind of thing, but you got to do what you got to do.
McGrawhill's American Idioms And Phrasal Verbs